//
//  FontAndColorMacros.h
//  FinanceBBS
//
//  Created by mibo02 on 2017/12/15.
//  Copyright © 2017年 mibo02. All rights reserved.
//

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h



#pragma mark -  间距区
///图片间距
#define kGAP 12.0f
//默认间距
#define kNormalSpace AdaptedWidth(17.0f)
///最多小数位
#define kMaxDecimalLength 8
///会话cell高度
#define kChatCellHeight 67.0f
#define kDefaultCellHeight 45.0f
#define kPortraitImageViewCornerRadius 17.0f
#define kDefaultPortraitImage IMAGE_NAMED(@"default_person")

#pragma mark -  颜色区
//全局色调渐变色数组
#define kGradientColors @[RGBA(243, 171, 60, 1),RGBA(249, 217, 106, 1)]
//全局色调
#define kColorMain  [UIColor colorWithHexString:@"#FFCC03"]
///默认导航栏颜色
#define kNavBgColor [UIColor colorWithHexString:@"#FFFFFF"]
///默认导航栏title颜色
#define kNavTintColor [UIColor colorWithHexString:@"#000000"]

//分割线颜色
#define kLineColor RGBA(199, 199, 204, .5)
//标题字色
#define kTitleColor [UIColor colorWithHexString:@"#333333"]
//再次级字色
#define kFontColor2 [UIColor colorWithHexString:@"#C7C7CC"]
///分割线灰
#define kColorSeparator     RGBA(217.0,217.0,217.0,1)
///文本灰
#define kColorTextGray      [UIColor colorWithHexString:@"#999999"]
////边框线灰
#define kColorBorderGray     RGBA(153.0,153.0,153.0,1)
///阴影颜色#000000
#define kShadowColor  RGBA(0, 0, 0, 0.19)

#pragma mark -  字体区

#define Chatroom_Message_Font_Size 16// 聊天室聊天文字大小

#define kBoldFont(FONTSIZE) kiOS9Later?FONT(@"PingFang-SC-Semibold",FONTSIZE):BOLDSYSTEMFONT(FONTSIZE)
#define kDefaultFont(FONTSIZE)  kiOS9Later?FONT(@"PingFang-SC-Medium",FONTSIZE):SYSTEMFONT(FONTSIZE)
#define kDefaultRegularFont(FONTSIZE)  kiOS9Later?FONT(@"PingFang-SC-Regular",FONTSIZE):SYSTEMFONT(FONTSIZE)

#pragma mark - 设置
///设置应用密码
///是否已经设置了应用密码
#define IS_DIDSET_LOCAl_Application_Key (!IsNilOrNull(VALUEFORKEY(kApplicationCodeKey)))
///应用密码
#define KLOCAl_Application_Key VALUEFORKEY(kApplicationCodeKey)
///设置应用密码
#define SET_KLOCAl_Application_Key(keyCode) SAVELOCAL(keyCode,kApplicationCodeKey)
///清空应用密码
#define REMOVE_KLOCAl_Application_Key [USERDEFAULTS removeObjectForKey:kApplicationCodeKey]
///是否需要进入后台就锁定
#define kIsNeedBackgroundLockApplication (!IsNilOrNull(VALUEFORKEY(kNeedBackgroundApplicationCodeKey)))
#define kNeedBackgroundLockApplication     SAVELOCAL(@"YES",kNeedBackgroundApplicationCodeKey)
#define kUnNeedBackgroundLockApplication [USERDEFAULTS removeObjectForKey:kNeedBackgroundApplicationCodeKey]
///是否是Face_or_touch_ID 解锁
#define kIsNeedFaceIDOrTouchIDUnLock (!IsNilOrNull(VALUEFORKEY(kNeedFaceIDOrTouchIDUnLock)))
#define kSetNeedFaceIDOrTouchIDUnLock     SAVELOCAL(@"YES",kNeedFaceIDOrTouchIDUnLock)
#define kRemovNeedFaceIDOrTouchIDUnLock [USERDEFAULTS removeObjectForKey:kNeedFaceIDOrTouchIDUnLock]

///是否财产隐藏
#define IS_Property_Hidden (!IsNilOrNull(VALUEFORKEY(kPropertyHidden)))
///设置财产隐藏
#define SET_Property_Hidden SAVELOCAL(@"YES",kPropertyHidden)
///取消
#define REMOVE_Property_Hidden [USERDEFAULTS removeObjectForKey:kPropertyHidden]

#endif /* FontAndColorMacros_h */
